﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LogicStationeryMasterForEmployee.Master" AutoEventWireup="true" CodeBehind="ViewRequisitionHistoryDetail.aspx.cs" Inherits="frmViewItemCatalog.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:GridView ID="GridViewRequisitionHistoryDetail" runat="server" CellPadding="4" ForeColor="#333333"
                    GridLines="None" AutoGenerateColumns="false" ShowFooter="True">
                    <AlternatingRowStyle BackColor="White" BorderStyle="Double" />
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    <%--<AlternatingRowStyle BackColor="White" />--%>
                    <Columns>
                        <asp:TemplateField HeaderText="Item No" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblItemNumber" runat="server" Text='<%# Eval("ItemID") %>' Style="text-align: center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Category Name" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("CategoryName") %>'
                                    Style="text-align: center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Item Name" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemDescription") %>'
                                    Style="text-align: center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Price" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblItemPrice" runat="server" Text='<%#"$" + Eval("Price") %>' Style="text-align: center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="OrderQuantity" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Label ID="lblOrderQuantity" runat="server" Text='<%# Eval("Qty") %>' Style="text-align: center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%-- <asp:TemplateField HeaderText="Quantity" HeaderStyle-HorizontalAlign="Center">
                <ItemTemplate>
                        <asp:LinkButton ID="btnMinus" runat ="server" Style="text-decoration:none;" CommandName="Decrease" CommandArgument='<%# Container.DataItemIndex%>' Text="-" ></asp:LinkButton>
                        <asp:Label ID="lblQty" runat ="server" Text ='<%# Eval("Qty") %>' style="text-align:center" />
                        <asp:HiddenField ID="Stock" runat="server" Value='<%# Eval("Stock")%>' />
                        <asp:LinkButton ID="btnPlus" runat ="server" Style="text-decoration:none;" CommandName="Increase" CommandArgument='<%# Container.DataItemIndex%>' Text="+"></asp:LinkButton>
                        <br />
                        <asp:Label ID="checkstock" runat="server" HorizontalAlign="Right" Text="No More Stock Left" Visible="False"></asp:Label>      
                </ItemTemplate>
            </asp:TemplateField>--%>
                        <asp:TemplateField HeaderText="Total" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                                <asp:Label ID="lblTotal" runat="server" />
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:Label ID="lblTotalPrice" runat="server" /><br />
                                <asp:Label ID="lblGrandTotal" runat="server" /><br />
                            </FooterTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
</asp:Content>
